package com.example.neutonote2.data.model;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

/**
 * 分类（文件夹）实体类
 */
@Entity(tableName = "categories")
public class Category {
    @PrimaryKey(autoGenerate = true)
    private int id;
    
    private String name; // 分类名称
    private String icon; // 图标资源名称
    private boolean isDefault; // 是否是默认分类

    public Category(String name, String icon, boolean isDefault) {
        this.name = name;
        this.icon = icon;
        this.isDefault = isDefault;
    }

    // Getters and Setters
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public boolean isDefault() {
        return isDefault;
    }

    public void setDefault(boolean isDefault) {
        this.isDefault = isDefault;
    }
} 